package com.example.healthmanagement.dao;

import com.example.healthmanagement.entity.User;
import org.springframework.data.jpa.repository.JpaRepository;
import org.springframework.stereotype.Repository;


import java.util.List;

// UserMapper.java
@Repository
public interface UserRepository extends JpaRepository<User, Long> {

    User getUserByUsername(String userName);

    Boolean existsByUsername(String userName);

    User getUserByUserID(Integer userID);


    void deleteByUserID(Integer userID);

    Boolean removeUsersByUserID(Integer valueOf);
}
